// constant.js
// 设置了密码盐值以及token的secretKey
const crypto = require('crypto');

module.exports = {
    SHA256_SUFFIX: 'shuonihao',
    sha256: (pwd) => {
        const hash = crypto.createHash("sha256")
            .update(pwd)
            .digest("hex");
        return hash;
    },
    secretKey: 'dengwenhao'
};